﻿function PLAYER_LIST_Command(data) {
	if (ig.game != null) {
		ig.game.updateUserList(data);
	}
};
function GAME_START_Command(data){
	console.log(data);
	if (ig.game != null) {
		ig.game.startPoker(data);
	}
};
function WAIT_Command(){
	if(ig.game != null){
		ig.game.wait();
	}
};
function WAIT_OTHER_Command(){
	if(ig.game != null){
		ig.game.waitOther();
	}
};
function HIT_Command (data){
	if(ig.game != null){
		ig.game.hit(data);
	}
};
function GAME_END_Command(data){
	if(ig.game != null){
		ig.game.endGame(data);
	}
};
function RESTART_Command(data){
	if(ig.game != null){
		ig.game.resetGame(data);
	}
};
function ERROR_Command(data) {
    alert(data);
};